void TimeMinusDay(int year, int mon, int day);
ÁÖ¾îÁø ³¯Â¥ º¯¼ö¿¡¼ 1ÀÏÀ» »©¼ °¢ º¯¼ö¿¡ ¹ÝȯÇÑ´Ù. À±´Þ 󸮵µ µÈ´Ù.
ÇÔ¼öÀÎÀÚ
year - ³â (ű׳ª º¯¼ö »ç¿ë)
mon - ¿ù (ű׳ª º¯¼ö »ç¿ë)
day - ÀÏ (ű׳ª º¯¼ö »ç¿ë)
return °ª
¸®ÅÏ°ªÀº ¾ø´Ù.
¿¹Á¦1
year = 2000;
mon = 1;
day = 14;
@TimeMinusDay(year, mon, day);
¹®Àå¼³¸í : ÇÔ¼ö°¡ ½ÇÇàµÇ°í ³ª¸é 2000³â 1¿ù 13ÀÏ ÀÌ µÈ´Ù.
Áï, year = 2000, mon = 1, day = 13 ÀÌ µÈ´Ù.
¿¹Á¦2
$year = 2000;
$mon = 1;
$day = 1;
@TimeMinusDay($year, $mon, $day);
¹®Àå¼³¸í : ÇÔ¼öÀÇ ÀÎÀڷΠű׸¦ ¹Ù·Î »ç¿ëÇÒ ¼ö ÀÖ´Ù.
À§ÀÇ ÇÔ¼ö¸¦ ½ÇÇàÇÏ°í ³ ÈÄÀÇ $year, $mon, $dayÀÇ °á°ú´Â
$year = 1999, $mon = 12, $day = 31 ÀÌ µÈ´Ù.(À±³â/³¯Â¥ÀÇ ¸ðµç °è»êÀÌ Ã³¸®µÈ´Ù.)
°ü·ÃÇ׸ñ